how to set serial number in gridview in asp net

138

how to set serial number in gridview in asp net -

     <asp:TemplateField>
        <ItemTemplate>
             <%#Container.DataItemIndex+1 %>
        </ItemTemplate>
    </asp:TemplateField>

Comments

Submit
0 Comments